import request from '@/utils/request'

// 取水数据异常预警列表查询-第一次查询
const firstWaterWarningList = function (params = {}) {
  return request({
    url: `/zy-api/api/waterWarning/getWaterWarningList`,
    method: 'post',
    data: params,
  })
}

// 取水数据异常预警列表查询-传参查询
const waterWarningList = function (params = {}) {
  return request({
    url: `/zy-api/api/waterWarning/getWaterWarningTow`,
    method: 'post',
    data: params,
  })
}

// 取水数据异常预警-设备故障申报-新增
const addWaterWarning = function (params = {}) {
  return request({
    url: `/zy-api/api/waterWarning/addWaterWarning`,
    method: 'post',
    data: params,
  })
}

// 取水数据异常预警-设备故障申报-批量新增
const batchAddWaterWarning = function (params = {}) {
  return request({
    url: `/zy-api/api/waterWarning/addWaterWarningBatch`,
    method: 'post',
    data: params,
  })
}

// 取水数据异常预警-异常记录-上方数据
const waterWarningInfo = function (params = {}) {
  return request({
    url: `/zy-api/api/waterWarning/getWaterWarningId`,
    method: 'post',
    data: params,
  })
}

// 取水数据异常预警-异常记录-下方数据
const recordList = function (params = {}) {
  return request({
    url: `/zy-api/api/waterWarning/getWaterWarningXia`,
    method: 'post',
    data: params,
  })
}

export {
  firstWaterWarningList,
  waterWarningList,
  addWaterWarning,
  batchAddWaterWarning,
  waterWarningInfo,
  recordList
}